/**
 * Created by bjcwq on 14-9-20.
 */
var request = require('supertest');
var should = require('should');
var app = require('../../../app');

describe('test/routes/api/users.text.js', function () {
    describe('/users',function(){
        it('should return `401 Unauthorized`',function(done){
            request(app).get('/api/users')
                .expect('Content-Type',/json/)
                .expect(401,done);
        });

        it('should return `200`',function(done){
            request(app).get('/api/users')
                .set('Authorization',"token 123123")
                .expect('Content-Type',/json/)
                .expect(200,done);
        });

        it('should return `200`',function(done){
            request(app).get('/api/users?access_token=123')
                .expect('Content-Type',/json/)
                .expect(200,done);
        });
    });

    describe('/users/:username',function(){
        it('should return `200` ')
    });
});